<?php

/* This is index for profile.
 * Aim of this page is to redirect direct view of profile or add details in profile.
 */
//$uid = 101; #my mail id from main database table - 'fa_user'
//$bid = 1;
//setcookie("gid", $uid);
//setcookie("bid",$bid);



if(isset($_COOKIE['bid'])){
    echo 'yes';
    header('Location:view/child');
}
else {
    echo 'no';
        header('Location:http://'.$_SERVER['HTTP_HOST'].'/salusbaby/');

}

?>